import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import CampusChashan from '../views/CampusChashan.vue'
import CampusYueqing from '../views/CampusYueqing.vue'
import StudentSystem from '../views/StudentSystem.vue'
import CampusBinhai from '../views/CampusBinhai.vue'
import wu from '@/views/wu.vue'
import liu from '@/views/liu.vue'
import qi from '@/views/qi.vue'



Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/CampusBinhai'
  },
  {
    path: '/CampusBinhai',
    name: 'CampusBinhai',
    component: CampusBinhai
  },
  {
    path: '/CampusChashan',
    name: 'CampusChashan',
    component: CampusChashan,
    children:[
      {
        path:'wu',
        component:wu
      },
      {
        path:'liu',
        component:liu
      },
      {
        path:'qi',
        component:qi
      }
    ]
  },
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path:'/CampusYueqing',
    name:'CampusYueqing',
    component:CampusYueqing
  },
  {
    path:'/StudentSystem',
    name:'StudentSystem',
    component:StudentSystem
  }
  
]

const router = new VueRouter({
  routes
})

export default router
